<?
/*
 * Copyright 2004-2005 Sigve Indregard.
 *
 * This file is part of Laivsys.
 *
 * Laivsys is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Laivsys is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Laivsys; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * $Id: db.php 33 2007-11-27 11:37:43Z sigve.indregard $
 */
 
//session save path should be redirected
//ini_set("session.save_path", "c:\\php\\sessiondata");

//auto-start a session
//not very pretty, but it's not my server >:->
ini_set("session.auto_start", "1");
session_start();

//do not display errors beyond this point
error_reporting(E_ERROR & E_PARSE);

$dbserver="";
$user="";
$pass="";
$db="";

mysql_connect($dbserver, $user, $pass) or die("Could not connect to DB server. Wrong server, username or password.");
mysql_select_db($db) or die("Could not select database");

?>
